/** 登录位置固定 */
.menu-login{
    position: fixed;
    top: 20px;
    z-index: 2;
    left: 20px;
}

/** 名字标签 */
.nickname-span{
    color: white;
    /** 小手 */
    cursor: pointer;
}

/** 按钮位置固定 */
.menu-button{
    position: fixed;
    right: 20px;
    top: 20px;
    z-index: 2;
    text-align: center;
}




/** 登录注册盒子 */
.login-register-box{
    /* 100%窗口高度 */
    height: 100%;
    /* 弹性布局 水平+垂直居中 */
    display: flex;
    justify-content: center;
    align-items: center;
    /* 渐变背景 */
    background: linear-gradient(200deg,#f3e7e9,#e3eeff);
}

.login-register-box .container{
    background-color: #fff;
    width: 650px;
    height: 415px;
    border-radius: 5px;
    /* 阴影 */
    box-shadow: 5px 5px 5px rgba(0,0,0,0.1);
    /* 相对定位 */
    position: relative;
}
.login-register-box .form-box{
    /* 绝对定位 */
    position: absolute;
    top: -10%;
    left: 5%;
    background-color: #d3b7d8;
    width: 320px;
    height: 500px;
    border-radius: 5px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    /* 动画过渡 加速后减速 */
    transition: 0.5s ease-in-out;
}
.login-register-box .register-box,.login-box{
    /* 弹性布局 垂直排列 */
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.login-register-box .hidden{
    display: none;
    transition: 0.5s;
}
.login-register-box h1{
    text-align: center;
    margin-bottom: 25px;
    /* 大写 */
    text-transform: uppercase;
    color: #fff;
    /* 字间距 */
    letter-spacing: 5px;
}
.login-register-box input{
    background-color: transparent;
    width: 70%;
    color: #fff;
    border: none;
    /* 下边框样式 */
    border-bottom: 1px solid rgba(255,255,255,0.4);
    padding: 10px 0;
    text-indent: 10px;
    margin: 8px 0;
    font-size: 14px;
    letter-spacing: 2px;
}
.login-register-box input::placeholder{
    color: #fff;
}
.captcha-code{
    width: 70%;
    display: flex;
}
.captcha-code button{
    width: 20%;
    margin-left: 10px;
}

.login-register-box input:focus{
    color: #a262ad;
    outline: none;
    border-bottom: 1px solid #a262ad80;
    transition: 0.5s;
}
.login-register-box input:focus::placeholder{
    opacity: 0;
}
.login-register-box .form-box button{
    width: 70%;
    margin-top: 35px;
    background-color: #f6f6f6;
    outline: none;
    border-radius: 8px;
    padding: 13px;
    color: #a262ad;
    letter-spacing: 2px;
    border: none;
    cursor: pointer;
}
.login-register-box .form-box button:hover{
    background-color: #a262ad;
    color: #f6f6f6;
    transition: background-color 0.5s ease;
}
.login-register-box .con-box{
    width: 50%;
    /* 弹性布局 垂直排列 居中 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* 绝对定位 居中 */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
.login-register-box .con-box.left{
    left: -2%;
}
.login-register-box .con-box.right{
    right: -2%;
}
.login-register-box .con-box h2{
    color: #8e9aaf;
    font-size: 25px;
    font-weight: bold;
    letter-spacing: 3px;
    text-align: center;
    margin-bottom: 4px;
}
.login-register-box .con-box p{
    font-size: 12px;
    letter-spacing: 2px;
    color: #8e9aaf;
    text-align: center;
}
.login-register-box .con-box span{
    color: #d3b7d8;
}
.login-register-box .con-box img{
    width: 150px;
    height: 150px;
    opacity: 0.9;
    margin: 40px 0;
}
.login-register-box .con-box button{
    margin-top: 3%;
    background-color: #fff;
    color: #a262ad;
    border: 1px solid #d3b7d8;
    padding: 6px 10px;
    border-radius: 5px;
    letter-spacing: 1px;
    outline: none;
    cursor: pointer;
}
.login-register-box .con-box button:hover{
    background-color: #d3b7d8;
    color: #fff;
}

.translateX80{
    transform: translateX(80%);
}

.translateX0{
    transform: translateX(0);
}

/** 菜单盒子 */
.menu-box{
    /** 弹性居中 */
    display: flex;
    justify-content: center;
    align-items: center;
    /** 设置高度才有上下居中 */
    height: 100%;
}

/** 搜索盒子 */
.search-box{
    /** 弹性居中 */
    display: flex;
    justify-content: center;
    align-items: center;

    /** 设置高度才有上下居中 */
    height: 100%;
}

/** 抽屉标题 */
.drawerHeaderTitle{
    color: #0066ff;
    font-size: 24px;
}

/** 导航菜单文字 */
.menu-text {
    position: relative;
    font-size: 24px;
    display: inline-block;
    cursor: pointer;
    margin-left: 20px;
    top:-20%
}
/** 导航菜单文字 */
.menu-text:before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: #4285f4;
    transition: all 0.3s;
}
/** 导航菜单文字 */
.menu-text:hover:before {
    width: 100%;
    left: 0;
    right: 0;
}

.wrapper{
    width: 450px;
    background-color: #fff;
    /* 内边距（上下左右） */
    padding: 40px;
    /* 盒子阴影 */
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    /* 圆角 */
    border-radius: 8px;
}
.wrapper .input-data{
    /* 相对定位 */
    position:relative;
    width: 100%;
    height: 40px;
}
.wrapper .input-data input{
    width: 100%;
    height: 100%;
    border:none;
    font-size: 17px;
    border-bottom: 2px solid #c0c0c0;
}

/* 输入框获得焦点时 */
.wrapper .input-data input:focus ~ label,
    /* 输入框的值为合法时 */
.wrapper .input-data input:valid ~ label{
    /* label上移，同时改变字号、字体颜色 */
    transform: translateY(-25px);
    font-size: 15px;
    color: #2c6fdb;
}
.wrapper .input-data label{
    /* 绝对定位 */
    position: absolute;
    bottom: 10px;
    left: 0px;
    color: #808080;
    /* 这个属性可以使点击label穿透到输入框 */
    pointer-events: none;
    /* 现在动画有点生硬，在这里需要给动画加个过渡 */
    transition: all 0.3s ease;
}
.wrapper .input-data .underline{
    position: absolute;
    bottom: 0px;
    height: 2px;
    width: 100%;
    background-color: #2c6fdb;
    /* 沿X轴缩小 */
    transform: scaleX(0);
    /* 这里同样给动画加个过渡 */
    transition: all 0.3s ease;
}
.wrapper .input-data input:focus ~ .underline,
.wrapper .input-data input:valid ~ .underline{
    /* 沿X轴放大 */
    transform: scaleX(1);
}
